import { createRouter, createWebHashHistory } from 'vue-router';
import HomePage from '@/views/home/HomePage.vue';
import CountdownPage from '@/views/countdown/CountdownPage.vue';
// 新增：导入待办事项页面
import TodoPage from '@/views/todo/TodoPage.vue';

const routes = [
  { path: '/', name: 'home', component: HomePage },
  { path: '/countdown', name: 'countdown', component: CountdownPage },
  // 新增：待办事项路由
  { path: '/todo', name: 'todo', component: TodoPage }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
